home *** CD-ROM | disk | FTP | other *** search
/ Educational Software Cooperative 4 / Educational Software Cooperative 4.iso / midilang / autobas.mpl < prev    next >
Text File  |  1996-02-06  |  1KB  |  77 lines

  1. 3357
  2. #
  3. #
  4. #
  5. #    autobas.mpl
  6. #
  7. #    Automatic Scale of Bass for Midi Keyboard
  8. #
  9. #      Author            ID                 Date
  10. #    ------------    -----------          ---------
  11. #    Serge Sibony    100417,2633           09/06/95
  12. #      
  13. #
  14. # This file is a mpl effect definition used by MidiLang
  15. #    MidiLang can be found at the MidiForum, in the
  16. #         Windows sound media library.
  17. # This effect adds scale of basses ( C D E F G A C ) based on
  18. # your melody.
  19. #
  20. #    The tonality is reset every 8 beats.
  21. #
  22. #    This mpl effect supposes that your bass channel is 2
  23. #
  24. #
  25.  
  26.  
  27.  
  28. Label beats
  29. # to be run at each beat
  30.  
  31. v+= 10 1
  32.  
  33. v< 10 9
  34.     goto suite
  35.  
  36. v= 10 1
  37. beat= 0
  38.  
  39. v== 9 0        if no note have been played , wait
  40.     goto end_beat
  41.  
  42. oldharm 1    reset the harmony
  43. calcharm 1
  44.  
  45. Label suite
  46.  
  47. v== 9 0
  48.     goto end_beat
  49.  
  50. getharm 1 10 5        get the note V[10]
  51.  
  52. Chan= 2
  53. vel= 100
  54. note=v 5
  55. note+= 24
  56. outmidi
  57. time+= 479
  58. vel= 0
  59. outmidi
  60.  
  61. Label end_beat
  62. end
  63.  
  64.  
  65. Label Main        Every note played are sent 
  66. CalcHarm 1        to the harmony package
  67. v= 9 1
  68. End
  69.  
  70. descript Automatic bass
  71. descript based on your melody.
  72. descript the scale is the one defined with
  73. descript your melody.
  74.  
  75.